package com.xuxiangyang.competitionsystem.service;

import com.xuxiangyang.competitionsystem.entities.Competition;
import com.xuxiangyang.competitionsystem.entities.Group;
import com.xuxiangyang.competitionsystem.entities.Registration;
import com.xuxiangyang.competitionsystem.entities.User;

import java.util.List;

public interface ICompService {

    void insert(Competition competition);

    List<Competition> getListAll(User user);

    List<Competition> getAllComp();

    void updateComp(Competition competition);

    void deleteById(Competition competition);

    void submit(Registration registration);

    List<Registration> getStuNoGroup(Registration registration);
    //    更改参赛选手的小组id
    void updateGroupOfRegNull(Registration registration);
    void updateGroupOfReg(Group group);

    void submitGroup(Group group);

    void prospectus(Group group);

    List<Group> getGroup(Group group);

    List<Registration> getStuByGroup(Group group);

    void updateGroup(Group group);

    User getStuIdByName(Registration registration);

    List<Group> getCompByUser(User user);

    void updateGroupState(Group group);

    List<Group> getGroupBySchool(User user);

}
